<template>
  <div class="list-item" v-waves>
    <div class="item-line"></div>
    <div class="title-wrapper">
      <h3 class="title">{{title}}</h3>
      <div class="desc">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script>
  export default{
    props: {
      title: {
        type: String,
        required: true
      }
    }
  }
</script>

<style lang="less" scoped>
  @import '~@/styles/mixin.less';
  @import '~@/styles/variables.less';

  .list-item{
    display: flex;
    position: relative;
    background-color: #fff;
    height: 1.6rem;
    padding: 0.3rem 0.34rem;
    .item-line{
      width: 10px;
      background-color: @color-theme-blue-medium;
    }
    .title-wrapper{
      width: 7.2rem;
      position: relative;
      padding-left: 0.26rem;
      .title{
        color: #2d2d2d;
        font-size: 0.34rem;
        font-weight: normal;
      }
      .desc{
        display: flex;
        justify-content: space-between;
        font-size: 0.28rem;
        color: #989898;
      }
    }
    .border-1px(#d9d9d9)
  }
</style>

